// packageAPI/pages/get-network-type/get-network-type.js
Page({
  data: {
    result: '',
    timeInterval: null,
    timeout: null,
  },

  switchTab() {
    console.log('mp.switchTab', '/pages/component/index/index');
    mp.switchTab({url: '/pages/component/index/index'})
  },
  reLaunch() {
    console.log('mp.reLaunch', '/pages/API/index/index');
    mp.reLaunch({url: '/pages/api/index/index'})
  },
  redirectTo() {
    console.log('mp.redirectTo', '/packageAPI/pages/buffer/buffer');
    mp.redirectTo({url: '/packageAPI/pages/buffer/buffer'})
  },
  navigateTo() {
    console.log('mp.navigateTo', '/packageAPI/pages/buffer/buffer');
    mp.navigateTo({url: '/packageAPI/pages/buffer/buffer'})
  },
  navigateBack() {
    mp.navigateBack()
  }
})
